package cn.wolfcode.service.impl;

import cn.wolfcode.domain.Choice;
import cn.wolfcode.mapper.ChoiceMapper;
import cn.wolfcode.service.IChoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ChoiceServiceImpl implements IChoiceService {
    @Autowired
    private ChoiceMapper mapper;

    @Override
    public int getCount(Long id1, Long id2) {
        return mapper.getCount(id1,id2);
    }

    @Override
    public Choice check(Long eId, Long typeId) {
        return mapper.check(eId,typeId);
    }

    @Override
    public void save(Choice choice) {
        mapper.insert(choice);
    }
}
